All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.music.MusicMIDIPacket
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.std.music.MusicMIDIPacket
- public final class MusicMIDIPacket
- extends QTByteObject
- implements PrimitivesLib, Cloneable
Describes the MIDI data that is passed by note allocation calls.
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
MusicMIDIPacket()
- The MusicMIDIPacket is used to contain MIDI messages that can be sent.
-
MusicMIDIPacket(byte[])
- The incoming byte[] contains MIDI data only.
-
clone()
- Make a copy of the MusicMIDIPacket.
-
getMIDIData()
- Gets the current MIDI data.
-
getReserved()
- Gets the reserved field setting.
-
setDataByte(int, int)
- Sets the current MIDI data byte at index to the supplied value.
-
setMIDIData(byte[])
- Sets the current MIDI data.
-
toString()
- Return a string representation of this object.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
MusicMIDIPacket
public MusicMIDIPacket()
- The MusicMIDIPacket is used to contain MIDI messages that can be sent.
out through QT
QuickTime__MusicMIDIPacket
MusicMIDIPacket
public MusicMIDIPacket(byte midiData[])
- The incoming byte[] contains MIDI data only.
getMIDIData
public byte[] getMIDIData()
- Gets the current MIDI data. The length of the packet is the length of the
data array that is returned
- Returns:
- the data array containing MIDI data
setMIDIData
public void setMIDIData(byte mData[])
- Sets the current MIDI data. The length of the packet is the length of the
data array that is supplied. The maximum length of the data packet is 249
bytes - a longer byte array will be truncated to the first 249 bytes
- Parameters:
- mData - the MIDI data
setDataByte
public void setDataByte(int index,
int val)
- Sets the current MIDI data byte at index to the supplied value.
- Parameters:
- index - the data byte to set
- val - the new value
getReserved
public int getReserved()
- Gets the reserved field setting. Will contain zero or one of the kMusicPacket.. constants
- Returns:
- the reserved field value
toString
public String toString()
- Return a string representation of this object.
- Overrides:
- toString in class QTByteObject
clone
public Object clone()
- Make a copy of the MusicMIDIPacket.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index